package com.ahau.springcloud.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Author xiao hu die
 * @Date 2021/11/28 22:51
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult<T> implements Serializable {
 private Integer code;
 private String message;
 private Object data;
 /**默认方法*/
  public CommonResult(Integer code, String message){
      this(code,message,null);
  }



}
